﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InStock_Add.aspx.cs" Inherits="Stock_InStock_Add" MasterPageFile="../MasterPage.master" %>
<%@ Import Namespace="Common" %>
<%@ Register src="Stock_Left.ascx" tagname="Stock_Left" tagprefix="uc1" %>

<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <table cellpadding="0" cellspacing="2" width="100%" border="0">
	<tr>
        <td class="leftTd"  valign="top" width="20%">
            <uc1:Stock_Left ID="Stock_Left1" runat="server" />
        </td>
		<td width="85%" valign="top">
		<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
			<tr>
		        <td class="leftTd"  valign="top">
		        <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
		        	<tr>
		            	<td class="titleStyle"><%= WebUtility.GetTitleByMenu(MenuType) %></td>
		            </tr>
		        </table>
		        <br />
		        <table cellpadding="0" cellspacing="1" width="100%" border="0" style="background:#000066;">
	                <form method="post" action="" name="AddForm" onSubmit="return CheckAddNew()">
	                 <input type="hidden" name="Oper" value="AddNews"> 
	                    <tr>
	                        <td class="leftContent">品名：</td>
	                        <td class="RightContent">
                            <asp:HiddenField ID="txt_StockKey" runat="server" />
	                        <asp:TextBox ID="txt_StName" runat="server" Width="150px" class="face"></asp:TextBox>
                            <a class="thickbox" href=../Stock/SelectStock.aspx?ParentID=<%= txt_StName.ClientID %>&ParentID1=<%= txt_StockKey.ClientID %>&KeepThis=true&TB_iframe=true&height=550&width=800" >选择物品</a>
	                            &nbsp; &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
                                    runat="server" ControlToValidate="txt_StName" ErrorMessage="请选择品名"></asp:RequiredFieldValidator>
                            </td>
	                    </tr>
	                    <tr>
	                        <td class="leftContent">入库数量：</td>
	                        <td class="RightContent">
	                        <asp:TextBox ID="txt_Num" runat="server" Width="80px" class="face"></asp:TextBox>
	                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" 
                                    runat="server" ControlToValidate="txt_StName" ErrorMessage="请填写入库数量"></asp:RequiredFieldValidator>
	                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                ControlToValidate="txt_Num" ErrorMessage="请输入大于0整数" 
                                ValidationExpression="^\d+$"></asp:RegularExpressionValidator></td>
	                    </tr>
	                     <tr>
	                        <td class="leftContent" valign="top" style="padding-top:20px;height:30px;"></td>
	                        <td class="RightContent">
                            <asp:Button ID="btnSubmit" runat="server" Text="添 加" CssClass="button" 
                                    onclick="btnSubmit_Click" />
	                        &nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重 置" name="btnReset" class="button"></td>
	                    </tr>
	                  </form> 
	                </table>
				</td>
		    </tr>
		</table>
        </td>
    </tr>
</table>
<div id="selstock" style="display:none">
	<table><tr><td>
         
	</td></tr></table>
</div>
</asp:Content>

